// 学习自测 - 需要权限控制的菜单
const learnTestJurisdictionRoutes = [
  {
    path: '/learnTest',
    name: 'learnTest',
    meta: {
      title: '学习自测'
    },
    component: () => import('@/views/LearnTest')
  },
  {
    path: '/learnTest/course',
    name: 'learnTest-course',
    meta: {
      title: '课程学习'
    },
    component: () => import('@/views/LearnTest/Course')
  },
  {
    path: '/learnTest/questionBank',
    name: 'learnTest-questionBank',
    meta: {
      title: '题库练习'
    },
    component: () => import('@/views/LearnTest/QuestionBank')
  },
  {
    path: '/learnTest/exam',
    name: 'learnTest-exam',
    meta: {
      title: '在线考试'
    },
    component: () => import('@/views/LearnTest/Exam')
  },
  {
    path: '/learnTest/my',
    name: 'learnTest-my',
    meta: {
      title: '我的学习'
    },
    component: () => import('@/views/LearnTest/My')
  }
]

// 学习自测 - 不需要权限控制的菜单
const learnTestWhiteRoutes = [
  // 课程学习
  {
    path: '/learnTest/course/introduce',
    name: 'learnTest-course-introduce',
    meta: {
      title: '课程介绍'
    },
    component: () => import('@/views/LearnTest/Course/Introduce')
  },
  {
    path: '/learnTest/course/graphicDetail',
    name: 'learnTest-course-graphicDetail',
    meta: {
      title: '课程详情'
    },
    component: () => import('@/views/LearnTest/Course/GraphicDetail')
  },
  // 在线考试
  {
    path: '/learnTest/exam/start',
    name: 'learnTest-exam-start',
    meta: {
      title: '开始考试'
    },
    component: () => import('@/views/LearnTest/Exam/Start')
  },
  {
    path: '/learnTest/exam/rules',
    name: 'learnTest-exam-rules',
    meta: {
      title: '考试规则'
    },
    component: () => import('@/views/LearnTest/Exam/Rules')
  },
  // 我的学习
  {
    path: '/learnTest/my/exam',
    name: 'learnTest-my-exam',
    meta: {
      title: '我的考试'
    },
    component: () => import('@/views/LearnTest/My/Exam')
  },
  {
    path: '/learnTest/my/exam/answer',
    name: 'learnTest-my-exam-answer',
    meta: {
      title: '答案查看'
    },
    component: () => import('@/views/LearnTest/My/Exam/Answer')
  }
]

// 学习自测 - 菜单
const learnTestRoutes = [...learnTestJurisdictionRoutes, ...learnTestWhiteRoutes]

export { learnTestJurisdictionRoutes, learnTestWhiteRoutes, learnTestRoutes }
